@import "common";

.page-box {
    background-color: #fff;
    margin: 16px 24px;
    padding: 16px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.07);
    border: 1px solid $border-color;
    @include boxShadow;
}

.margin-box {
    margin: 16px 24px;
}

.box-shadow {
    @include boxShadow;
}
.form-item-choose{
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 32px;
    height: 32px;
    margin-top: 34px;
    cursor: pointer;
    border-bottom: 1px solid $border-color;
    padding-right: 12px;
}
.card-box {
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.07);
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    font-weight: 600;
    padding: 0 22px;
    color: $title-color;
    border-bottom: 1px solid $border-color;
}

.btn-line {
    display: inline-block;
    width: 1px;
    height: 14px;
    margin: -2px 10px;
    background-color: $theme-color;
}

.all-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.border-top-line {
    border-top: 1px solid $border-color;
}

.border-left-line {
    border-left: 1px solid $border-color;
}

.border-right-line {
    border-right: 1px solid $border-color;
}

.border-bottom-line {
    border-bottom: 1px solid $border-color;
}

.border-round-line {
    border: 1px solid $border-color;
}

/*间隔条*/
.empty-block {
    width: 100%;
    height: 10px;
    background-color: $bg-color;
}

.background-gray {
    background-color: $bg-color;
}

.background-white {
    background-color: white;
}

.mb20 {
    margin-bottom: 20px;
}

.mt20 {
    margin-top: 20px;
}

.ml20 {
    margin-left: 20px;
}

.mr20 {
    margin-right: 20px;
}

.mo20 {
    margin: 20px;
}

.mt0 {
    margin-top: 0 !important;
}

.pb20 {
    padding-bottom: 20px;
}

.pt20 {
    padding-top: 20px;
}

.pr20 {
    padding-right: 20px;
}

.pl20 {
    padding-left: 20px;
}

.po20 {
    padding: 20px;
}

.mb12 {
    margin-bottom: 12px;
}

.mt12 {
    margin-top: 12px;
}

.ml12 {
    margin-left: 12px;
}

.mr12 {
    margin-right: 12px;
}

.mo12 {
    margin: 12px;
}

.pb12 {
    padding-bottom: 12px;
}

.pt12 {
    padding-top: 12px;
}

.pr12 {
    padding-right: 12px;
}

.pl12 {
    padding-left: 12px;
}

.po12 {
    padding: 12px;
}

.pt3 {
    padding-top: 3px;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.tips-size {
    font-size: 12px;
}

.line-one {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cursor {
    cursor: pointer;
}

/*保存按钮*/
.lang-btn {
    min-width: 160px;
}

.lang-btn .iconfont {
    margin-right: 6px;
}


.flex {
    display: flex;
}

.flex-b {
    display: flex;
    justify-content: space-between;
}
.flex-c{
    display: flex;
    align-items: center;
}

.flex-bc {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

/*文本样式*/
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-red,
.text-danger {
    color: $danger-color;
}

.text-white {
    color: white;
}

.text-success {
    color: $success-color;
}

.text-warning {
    color: $warning-color;
}

.text-title {
    color: $title-color;
}

.link {
    color: $theme-color;
    cursor: pointer;

    &:hover {
        text-decoration: underline;
    }
}

.text-theme,
.link {
    color: $theme-color;
}

.text-font-color {
    color: $font-color;
}

.text-tips {
    color: $tips-color;
}

.theme-bg {
    background-color: $theme-color;
}

.danger-bg {
    background-color: $danger-color;
}

.white-bg {
    background-color: white;
}

.placeholder {
    color: #c0c4cc;
}

.execution {
    padding-top: 10px;
}

table {
    max-width: 99%;
}

.theme-title {
    position: relative;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    padding-left: 14px;
    margin: 20px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-title:before {
    position: absolute;
    left: 0;
    top: 8px;
    content: '';
    width: 4px;
    height: 24px;
    background-color: #47acee;
}

.theme-title .sub-title {
    float: right;
    font-size: 14px;
}

/*动画*/
/* fade */
.slide-fade-enter-active {
    transition: all .3s ease;
}

.slide-fade-leave-active {
    transition: all .3s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}

.slide-fade-enter, .slide-fade-leave-to {
    transform: translateX(30px);
    opacity: 0;
}

#nprogress .bar {
    background: #1b68e8 !important; //自定义颜色
}


/*自定义table样式*/
.customTable{
    font-size: 10px;
    border: 1px solid #EBEEF5;
    border-left: none;
    border-top: none;
    tr,thead{
        padding: 0;
    }
    th,td{
        padding: 8px 16px;
        border: 1px solid #EBEEF5;
        border-right: none;
        border-bottom: none;
        font-weight: normal;
        color: #000;
        font-size: 1.4em;
        &.label{
            font-weight: bold;
            color: #666;
            font-size: 1.2em;
        }
    }
    &[align="center"],tr[align="center"],td[align="center"]{
        text-align: center;
    }
    &[align="left"],tr[align="left"],td[align="left"]{
        text-align: left;
    }
    &[align="right"],tr[align="right"],td[align="right"]{
        text-align: right;
    }
    font{
        color: #f00;
    }
}
